import { get, post } from '@/utils/request'
import { Letter } from './interface'
// 获取一封信页面显示的数据
export const queryCurrentLetter = () => {
    return get<Letter.LetterInterface>('/letter/queryCurrent')
}

export const queryLetter = () => {
    return get<Letter.LetterInterface[]>('/letter/query')
}

export const updateLetter = (params: { content: string }) => {
    return post('/letter/update', params)
}
